//
//  WidgetTemplate.h
//  WebClipper
//
//  Created by Daniel Braun on 25/04/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
/*!
    @header WidgetTemplate
    @abstract   represent a widget template,(e.g. stored in Resources)
    @discussion 
*/

/*!
    @class
    @abstract   represent a widget template,(e.g. stored in Resources)
    @discussion  (comprehensive description)
*/


@interface WidgetTemplate : NSObject {
	NSString *name;
	NSString *fullname;
	NSString *path;
	NSMutableArray *_variableList;
@public
	BOOL isWdgtProj;
	BOOL isUser;
}
/*!
    @method     
    @abstract   (brief description)
    @discussion (comprehensive description)
*/

- initWithPath:(NSString *)path;

/*!
    @method     
    @abstract   returns widget name
    @discussion (comprehensive description)
*/

- (NSString *) name;

/*!
    @method     
    @abstract   returns list of widget WebExtractor variables
    @discussion (comprehensive description)
*/

- (NSString *) iconPath;

/*!
    @method     
    @abstract   (brief description)
    @discussion (comprehensive description)
*/

- (NSArray *) variableList;

/*!
    @method     
    @abstract   return YES if all variables needed by widget exist in WebExtract
    @discussion (comprehensive description)
*/

- (BOOL) variablesOk;

/*!
    @method     
    @abstract   deploy to dashboard / to file
    @discussion (comprehensive description)
*/
- (void) testWidget;

//- (IBAction) deployForTest:(id) sender;
//- (BOOL) deployInDashboard;
//- (BOOL) deployHasFile;



@end
